/**
 * @(#)NoneedLoginUserServiceImpl.java 2017年5月22日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.service.impl;

import org.jsbd.boss.domian.channel.HistoryMaoUser;
import org.jsbd.boss.domian.channel.NoneedLoginUser;
import org.jsbd.boss.domian.channel.ThirdUserQueryVo;
import org.jsbd.boss.enums.HistoryUserTableEnum;
import org.jsbd.boss.enums.LoginTypeEnum;
import org.jsbd.boss.service.IUserClientInfoService;
import org.jsbd.boss.util.CacheKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 历史用户
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service("historyBasicUserService")
public class HistoryBasicUserServiceImpl extends ThirdLoginAdapterHandler<HistoryMaoUser> {
	public static final Logger LOGGER = LoggerFactory.getLogger(HistoryBasicUserServiceImpl.class);

	@Resource
	private IUserClientInfoService userClientService;

	@Override
	public boolean init() {
		loginIndexKey = CacheKey.BASIC_LOGIN_INDEX;
		loginType = LoginTypeEnum.BASIC;
		queueKey = CacheKey.BASIC_USER_QUEUE;
		return true;
	}

	@Override
	public List<HistoryMaoUser> selectUserList(ThirdUserQueryVo queryVo) {
		queryVo.setTableName(HistoryUserTableEnum.BASIC.getCode());
		queryVo.setLoginType(loginType);
		return (List<HistoryMaoUser>) selectHistoryUserList(queryVo);

	}

}
